<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/commons/tags.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>流程查看</title>

</head>
<body>
	<div class="btn-toolbar list-toolbar">
		<button class="btn btn-primary" onclick="window.location='${cx}/act/deploy'">
			<i class="fa fa-plus"></i> 新增流程
		</button>
		<div class="btn-group"></div>
	</div>
	<div class="panel panel-default">
		<p class="panel-heading no-collapse">[工作流程管理系统]&nbsp;&nbsp;部署信息管理列表</p>
		<table class="table">
			<thead>
				<tr>
					<th>流程编号</th>
					<th>流程名称</th>
					<th>发布时间</th>
					<th style="width: 3.5em;">操作</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach items="${deployList }" var="deploy">
				<tr>
					<td>${deploy.id }</td>
					<td>${deploy.name }</td>
					<td>${deploy.deploymentTime }</td>
					<td> 
						<a href="${cx }/act/deletedeploy/${deploy.id }/del">
							<i class="deleteDeploy fa fa-trash-o"></i>删除
							<input type="hidden" value="${deploy.id }"/>
						</a>
					</td>
				</tr>
				</c:forEach>
			</tbody>
		</table>
	</div>
	
	<div class="panel panel-default">
		<p class="panel-heading no-collapse">[工作流程管理系统]&nbsp;&nbsp;流程定义信息列表</p>
		<table class="table">
			<thead>
				<tr>
					<th>流程定义编号</th>
					<th>流程名称</th>
					<th>流程定义KEY</th>
					<th>流程定义版本</th>
					<th>规则文件</th>
					<th>流程图片</th>
					<th>部署编号</th>
					<th style="width: 3.5em;">操作</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach items="${procDeList }" var="proc">
				<tr>
					<td>${proc.id }</td>
					<td>${proc.name }</td>
					<td>${proc.key }</td>
					<td>${proc.version }</td>
					<td>${proc.resourceName }</td>
					<td>${proc.diagramResourceName }</td>
					<td>${proc.deploymentId }</td>
					<td><a href="${cx }/act/procview/${proc.deploymentId }/${proc.diagramResourceName }" role="button" data-toggle="modal">
							查看流程图
						</a>
					</td>
				</tr>
				</c:forEach>
			</tbody>
		</table>
	</div>
</body>
</html>